export const EventEmitter = require('events').EventEmitter;
const event1 = new EventEmitter();
console.log('event', event1);
event1.on('testEvent', function () {
  console.log('测试绑定事件');
});

setTimeout(function () {
  event1.emit('testEvent');
}, 1000);
